<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        async function fn() {
            //不管返回数字还是字符串或者undefined，只要不是Promise对象就是成功的回调
           // return '重庆对外经贸学院!!!';
            return; 

            //throw new Error('出错了!!!');

            /* return new Promise((resolve, reject) => {
                // resolve('接受数据成功!!!')
                reject('出错了!!!');
            }) */
        }

        const result = fn();
        console.log(result);
    </script>
</body>
</html>